runtime.schedt.nmspinning (field)
15 uses
runtime (current package)
proc.go#L874: sched.nmspinning.Add(1)
proc.go#L2680: if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
proc.go#L2732: if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {
proc.go#L2747: if sched.nmspinning.Add(-1) < 0 {
proc.go#L2823: if sched.nmspinning.Add(-1) < 0 {
proc.go#L2994: if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
proc.go#L3123: if sched.nmspinning.Add(-1) < 0 {
proc.go#L3459: nmspinning := sched.nmspinning.Add(-1)
proc.go#L5482: sched.nmspinning.Add(1)
proc.go#L5714: if runqempty(pp) && sched.nmspinning.Load()+sched.npidle.Load() > 0 && pd.syscallwhen+10*1000*1000 > now {
proc.go#L5805: print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle.Load(), " threads=", mcount(), " spinningthreads=", sched.nmspinning.Load(), " needspinning=", sched.needspinning.Load(), " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)
proc.go#L6615: if i >= active_spin || ncpu <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
runtime2.go#L796: nmspinning atomic.Int32 // See "Worker thread parking/unparking" comment in proc.go.
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |